import os

# 数据库配置
ZEUS_MYSQL_NAME = 'zeus_v1'
ZEUS_MYSQL_USER = os.getenv('DB_USER', 'root')
ZEUS_MYSQL_PASSWORD = os.getenv('DB_PWD', 'root')
ZEUS_MYSQL_HOST = '127.0.0.1'
ZEUS_MYSQL_PORT = 3306
ZEUS_MYSQL_CHARSET = 'utf8'

# 缓存配置
ZEUS_CACHES_REDIS = {
    "BACKEND": "django_redis.cache.RedisCache",
    "LOCATION": "redis://127.0.0.1:6379/0",
    "OPTIONS": {
        "CLIENT_CLASS": "django_redis.client.DefaultClient",
        "CONNECTION_POOL_KWARGS": {"max_connections": 1000},
        "DECODE_RESPONSES": True,
        # "PASSWORD": "",
    }
}
